Skip to content

fix: full PHPUnit suite passing on Linux with PHP 8.4 + RabbitMQ - #1

Merged
ecartz merged 1 commit into
remote-test-20260831from
cursor/full-phpunit-linux-da65
Sep 2, 2026
Merged

fix: full PHPUnit suite passing on Linux with PHP 8.4 + RabbitMQ#1
ecartz merged 1 commit into
remote-test-20260831from
cursor/full-phpunit-linux-da65

Conversation

@ecartz

@ecartz ecartz commented Sep 1, 2026

Copy link
Copy Markdown

Summary

Runs the complete PHPUnit suite (864 tests) on Linux with PHP 8.4, RabbitMQ 4.x, ext-sockets, and Toxiproxy. All tests pass with zero failures and zero skips.

Test results

./vendor/bin/phpunit --verbose --no-coverage
OK (864 tests, 1290 assertions)

JUnit report: ./vendor/bin/phpunit --no-coverage --log-junit build/report.junit.xml

Fixes

  1. RabbitMQ 4.x compatibility — Added deprecated_features.permit.transient_nonexcl_queues = true to .ci/ubuntu/rabbitmq.conf so functional tests that declare transient non-exclusive queues (AMQP defaults) are not rejected by RabbitMQ 4.3+.

  2. Toxiproxy upstream routing — Changed TOXIPROXY_AMQP_TARGET from php-amqplib-rabbitmq to host.docker.internal and added --add-host=host.docker.internal:host-gateway to the Toxiproxy container. This routes proxy traffic through the host-published RabbitMQ port, which works reliably when Docker inter-container DNS is unavailable.

  3. Toxiproxy test helper hardeningToxiProxy now removes stale proxies before creating new ones, uses longer HTTP timeouts (5s), and performs best-effort cleanup on close.

  4. PHP 8.4 strict type fixes — Cast PORT and Toxiproxy listen port to int; cast mt_rand() to string before md5() in ConnectionAuthTest.

  5. gha-setup.sh — Exports TOXIPROXY_* environment variable defaults after starting services.

Open in Web Open in Cursor 

- Permit transient non-exclusive queues in CI RabbitMQ 4.x config
- Route Toxiproxy upstream through host.docker.internal for reliable
  broker access when container DNS networking is unavailable
- Export TOXIPROXY_* defaults from gha-setup.sh
- Harden ToxiProxy test helper for stale proxies and longer API timeouts
- Fix PHP 8.4 strict type issues in test config and auth helper

Co-authored-by: ecartz <ecartz@users.noreply.github.com>
@ecartz
ecartz merged commit 992384e into remote-test-20260831 Sep 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants